package com.itheima.ZuoYe03;

public class Animal {
    private String name;
    private int age;
    private String sex;
    public void eat(){
        System.out.println("吃饭");
    }

    public Animal() {
    }

    public Animal(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }
}
